package org.linlinjava.litemall.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.BusinessPerson;
import org.linlinjava.litemall.db.domain.BusinessPersonExample;

public interface BusinessPersonMapper {
    long countByExample(BusinessPersonExample example);

    int deleteByExample(BusinessPersonExample example);

    int deleteByPrimaryKey(String personId);

    int insert(BusinessPerson record);

    int insertSelective(BusinessPerson record);

    BusinessPerson selectOneByExample(BusinessPersonExample example);

    BusinessPerson selectOneByExampleSelective(@Param("example") BusinessPersonExample example, @Param("selective") BusinessPerson.Column ... selective);

    List<BusinessPerson> selectByExampleSelective(@Param("example") BusinessPersonExample example, @Param("selective") BusinessPerson.Column ... selective);

    List<BusinessPerson> selectByExample(BusinessPersonExample example);

    BusinessPerson selectByPrimaryKeySelective(@Param("personId") String personId, @Param("selective") BusinessPerson.Column ... selective);

    BusinessPerson selectByPrimaryKey(String personId);

    int updateByExampleSelective(@Param("record") BusinessPerson record, @Param("example") BusinessPersonExample example);

    int updateByExample(@Param("record") BusinessPerson record, @Param("example") BusinessPersonExample example);

    int updateByPrimaryKeySelective(BusinessPerson record);

    int updateByPrimaryKey(BusinessPerson record);
}